package swing;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class JPanelDemo01 extends JFrame {


	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					JPanelDemo01 frame = new JPanelDemo01();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public JPanelDemo01() {
		JFrame frame=new JFrame("welcome to mldn");
		JPanel contentPane = new JPanel();
		contentPane.add(new JLabel("标签-A"));
		contentPane.add(new JLabel("标签-B"));
		contentPane.add(new JLabel("标签-C"));
		contentPane.add(new JButton("标签-X"));
		contentPane.add(new JButton("标签-Y"));
		contentPane.add(new JButton("标签-Z"));
		frame.add(contentPane);
		frame.pack();
		frame.setLocation(300, 200);
		frame.setVisible(true);
	}

}
